-
Notifications
You must be signed in to change notification settings - Fork 35
Add JSON literal alias tests. #238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -0,0 +1,12 @@ | |||
{ | |||
"@context": { | |||
"@version": 1.1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need an explicit version here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was matching the style of the other js* tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I think we could (should) remove the explicit version ... or duplicate without it.
Technically, it’s a 1.1 test, so |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remember to run "rake" in the tests directory to make sure the HTML versions of the manifests are rebuilt.
Also, expansion tests should be replicated in toRdf, as @rubensworks does not go through an intermediate expansion step; this has been the pattern for other tests. |
For #237 |
Tests for an implementation issue found in jsonld.js:
digitalbazaar/jsonld.js#346